package com.ruoyi.labdata.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.labdata.mapper.LabFlowTaskLogMapper;
import com.ruoyi.labdata.domain.LabFlowTaskLog;
import com.ruoyi.labdata.service.ILabFlowTaskLogService;

/**
 * taskLogService业务层处理
 * 
 * @author winner pan
 * @date 2022-03-26
 */
@Service
public class LabFlowTaskLogServiceImpl implements ILabFlowTaskLogService 
{
    @Autowired
    private LabFlowTaskLogMapper labFlowTaskLogMapper;

    /**
     * 查询taskLog
     * 
     * @param logId taskLogID
     * @return taskLog
     */
    @Override
    public LabFlowTaskLog selectLabFlowTaskLogById(Long logId)
    {
        return labFlowTaskLogMapper.selectLabFlowTaskLogById(logId);
    }

    /**
     * 查询taskLog列表
     * 
     * @param labFlowTaskLog taskLog
     * @return taskLog
     */
    @Override
    public List<LabFlowTaskLog> selectLabFlowTaskLogList(LabFlowTaskLog labFlowTaskLog)
    {
        return labFlowTaskLogMapper.selectLabFlowTaskLogList(labFlowTaskLog);
    }

    /**
     * 新增taskLog
     * 
     * @param labFlowTaskLog taskLog
     * @return 结果
     */
    @Override
    public int insertLabFlowTaskLog(LabFlowTaskLog labFlowTaskLog)
    {
        labFlowTaskLog.setCreateTime(DateUtils.getNowDate());
        return labFlowTaskLogMapper.insertLabFlowTaskLog(labFlowTaskLog);
    }

    /**
     * 修改taskLog
     * 
     * @param labFlowTaskLog taskLog
     * @return 结果
     */
    @Override
    public int updateLabFlowTaskLog(LabFlowTaskLog labFlowTaskLog)
    {
        return labFlowTaskLogMapper.updateLabFlowTaskLog(labFlowTaskLog);
    }

    /**
     * 批量删除taskLog
     * 
     * @param logIds 需要删除的taskLogID
     * @return 结果
     */
    @Override
    public int deleteLabFlowTaskLogByIds(Long[] logIds)
    {
        return labFlowTaskLogMapper.deleteLabFlowTaskLogByIds(logIds);
    }

    /**
     * 删除taskLog信息
     * 
     * @param logId taskLogID
     * @return 结果
     */
    @Override
    public int deleteLabFlowTaskLogById(Long logId)
    {
        return labFlowTaskLogMapper.deleteLabFlowTaskLogById(logId);
    }
}
